Use g_warning() for X errors and X IO errors
authorOwen W. Taylor <otaylor@fishsoup.net>
Tue, 21 Sep 2010 04:30:46 +0000 (00:30 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 21 Sep 2010 04:30:46 +0000 (00:30 -0400)
commit93e203e06769ccae494fc67809b9b4ee855f5b05
tree63eb26d745197529ea6bd5e849a6b240b6c4f315
parente0aa12eb0ab8d20a2bc9de7d89c779d3566ee669
Use g_warning() for X errors and X IO errors

Currently fprintf(stderr, ...) is used for X error and X IO errors
(unless compiled with debugging, in which case g_error() is used for
X errors.)

But if an application is redirecting log messages, we really want
X errors to appear in that same log, so it's better to use a g_logv()
variant.

Though g_warning() isn't really appropriate for "lost connection to the
server", G_LOG_LEVEL_INFO isn't part of the "prefixed log levels"
so will produce output without the application name and PID.

https://bugzilla.gnome.org/show_bug.cgi?id=630216
gdk/x11/gdkdisplay-x11.c
gdk/x11/gdkmain-x11.c